<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
    // var str ='';
    // for(var i=1;i<=5;i++){
    //     for(var j =1;j<=5;j++){
    //         str=str+'*';
    //         console.log(str);
    //     }
    // }

    var str ='';
    for(var i=1;i<=5;i++){//外层循环负责打印5行
        for(var j =1;j<=5;j++){//里层循环负责打印5个星星
            str=str+'*';
        }
        str=str+'\n';
    }
    console.log(str);
    </script>
</head>
<body>
    
</body>
</html>